/*
 * @Author:
 * @Date: 2023-06-27 10:52:46
 * @LastEditors:
 * @LastEditTime: 2023-08-16 15:57:57
 * @FilePath: \immoka-admin\src\api\compositeManagement\index.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name} , All Rights Reserved.
 */
import request from '@/utils/request'

// 合成列表
export function compoundList(query) {
    return request({
        url: '/api/magic/compound/list',
        method: 'get',
        params: query
    })
}
// 删除合成礼物
export function compoundDel(query) {
    return request({
        url: '/api/magic/compound/del',
        method: 'post',
        data: query
    })
}
// 添加合成礼物
export function compoundAdd(query) {
    return request({
        url: '/api/magic/compound/add',
        method: 'post',
        data: query
    })
}
// 道具列表
export function propList(query) {
    return request({
        url: '/api/magic/prop/list',
        method: 'get',
        params: query
    })
}
// 设置配置
export function propSetSetting(query) {
    return request({
        url: '/api/magic/prop/setSetting',
        method: 'post',
        data: query
    })
}
// 获取配置
export function propGetSetting(query) {
    return request({
        url: '/api/magic/prop/getSetting',
        method: 'get',
        params: query
    })
}

// 删除道具
export function propDel(query) {
    return request({
        url: '/api/magic/prop/del',
        method: 'post',
        data: query
    })
}
// 添加道具
export function propAdd(query) {
    return request({
        url: '/api/magic/prop/add',
        method: 'post',
        data: query
    })
}

// 经验列表
export function levelExperienceList(query) {
    return request({
        url: '/admin/game/lottery-ladder/level',
        method: 'get',
        params: query
    })
}
// 添加经验
export function levelExperienceSave(query) {
    return request({
        url: '/admin/game/lottery-ladder/level',
        method: 'post',
        data: query
    })
}
// /删除经验
export function levelExperienceDel(query) {
    return request({
        url: `/admin/game/lottery-ladder/level/${query}`,
        method: 'delete',
        data: query
    })
}

// 奖池信息
export function gameLotteryLadderPool(query) {
    return request({
        url: '/admin/game/lottery-ladder/pool',
        method: 'get',
        params: query
    })
}

// 本期奖池奖励
export function gameLotteryLadderPoolPrize(query) {
    return request({
        url: '/admin/game/lottery-ladder/pool/prize',
        method: 'get',
        params: query
    })
}
// 添加本期奖池奖励
export function gameLotteryLadderPoolPrizeAdd(query) {
    return request({
        url: '/admin/game/lottery-ladder/pool/prize/add',
        method: 'post',
        data: query
    })
}
// 删除本期奖池奖励
export function gameLotteryLadderPoolPrizeDel(query) {
    return request({
        url: '/admin/game/lottery-ladder/pool/prize/del',
        method: 'post',
        data: query
    })
}
// 下期奖池奖励
export function gameLotteryLadderPoolTemplate(query) {
    return request({
        url: '/admin/game/lottery-ladder/pool/template',
        method: 'get',
        params: query
    })
}
// 添加下期奖池奖励
export function gameLotteryLadderPoolTemplateAdd(query) {
    return request({
        url: '/admin/game/lottery-ladder/pool/template/add',
        method: 'post',
        data: query
    })
}
// 删除下期奖池奖励
export function gameLotteryLadderPoolTemplateDel(query) {
    return request({
        url: '/admin/game/lottery-ladder/pool/template/del',
        method: 'post',
        data: query
    })
}

// 奖励列表
export function gameLotteryLadderPrize(query) {
    return request({
        url: '/admin/game/lottery-ladder/prize',
        method: 'get',
        params: query
    })
}
// 添加奖励
export function gameLotteryLadderPrizeSave(query) {
    return request({
        url: '/admin/game/lottery-ladder/prize',
        method: 'post',
        data: query
    })
}
// 删除奖励
export function gameLotteryLadderPrizeDel(query) {
    return request({
        url: `/admin/game/lottery-ladder/prize/${query}`,
        method: 'delete',
        data: query
    })
}

// 、游戏基础配
export function gameLotteryLadderSetting(query) {
    return request({
        url: '/admin/game/lottery-ladder/setting',
        method: 'get',
        params: query
    })
}

// 修改游戏基础配置
export function gameLotteryLadderSettingSave(query) {
    return request({
        url: `/admin/game/lottery-ladder/setting`,
        method: 'post',
        data: query
    })
}

// 修改奖池状态
export function gameLotteryLadderPoolStatus(query) {
    return request({
        url: `/admin/game/lottery-ladder/pool/status`,
        method: 'post',
        data: query
    })
}
